package com.arun.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class HomeController {

	@RequestMapping(value = "/")
	public String index(HttpServletResponse response) throws IOException {

		//response.sendRedirect("C7.html");
		return "C7";

	}
	
	 /**
     * 404页面
     */
	@RequestMapping(value = "/error/404")
    public String error_404() {
        return "error/C7";
    }

    /**
     * 500页面
     */
	@RequestMapping(value = "/error/500")
    public String error_500() {
        return "error/C7";
    }

	 /**
     * 404页面
     */
	@RequestMapping(value = "/error/4040")
    public String error_404_() {
        return "error/C7";
    }	
}
